package com.sniper.mybatis.service.impl;

import com.sniper.datasource.DataSource;
import com.sniper.datasource.DataSourceValue;
import com.sniper.model.AdminRight;
import com.sniper.mybatis.service.BaseService;

import java.util.List;

/**
 * 权限right
 *
 * @author sniper
 */

public interface AdminRightService extends BaseService<AdminRight> {

    @DataSource
    void appendRightByURL(String url);

    @DataSource
    List<AdminRight> listSpringRight();

    @DataSource(DataSourceValue.SLAVE)
    AdminRight findRightByUrl(String url);

}
